#pragma once
#include "Parser.h"

/* calculates the overlap for each group between each time slice - 
   the percentage of the extents that were in both time slices for each group
*/
class CalcOverlap
{
public:
	Parser* parser;
	map<int, double> group1Overlaps;
	map<int, double> group2Overlaps;
	map<int, double> group3Overlaps;
	double group1Desired;
	double group2Desired;
	double group3Desired;

	CalcOverlap(Parser* p);
	~CalcOverlap(void);
	void calculate();
	string calcKey(ExtentEntry*);
};